package entity.domain.value;

import entity.domain.topic.Type;

import java.io.Serializable;

public class Value<T> implements Serializable{

    private Type valueType;

    private T value;

    private String description;

    public Type getValueType() {
        return valueType;
    }

    public void setValueType(Type valueType) {
        this.valueType = valueType;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public T getValue() {
        return value;
    }

    public void setValue(T value) {
        this.value = value;
    }

    @Override
    public String toString() {
        return String.valueOf(value);
    }
}
